#pragma once

#include <string>
#include <vector>
#include "ServiceProvider.h"


class Regesiter
{
public:
	Regesiter(void);
	~Regesiter(void);


public:
	LSTATUS UserInfoRegesiter(
		const std::wstring& serviceProvider, 
		const std::wstring& userName , 
		const std::wstring& userPwd,
		const std::wstring& userreplyPhone,
		const std::wstring& usersmtpAddress
		);
	LSTATUS ServiceInfoRegesiter(
		const std::wstring& serviceProvider,
		const std::wstring& serviceUri,
		const std::wstring& signUpPage,
		const std::wstring& localName,
		const std::wstring& SMS_maxRecipientsPerMessage,
		const std::wstring& SMS_maxMessagesPerSend,
		const std::wstring& SMS_maxSbcsPerMessage,
		const std::wstring& SMS_maxDbcsPerMessage
		);
	LSTATUS LoadServiceProvider(std::vector<ServiceProvider*>* list);

private:
	LSTATUS LoadSerivceProviderValue(HKEY AddinKey , const std::wstring& providerName , ServiceProvider& resultProvider);
};

